<{if $aCart.object.goods}>
<ul class="pt-list">
  <{foreach from=$aCart.object.goods item=goods key=_obj_key}>
  <{if $goods.quantity}>
  <li class="pt-h-item c-fix">
    <input type="hidden" value="<{}>">
    <input type="hidden" name="obj_type" value="goods" />
    <input type="hidden" name="goods_ident" value="<{$goods.obj_ident}>" />
    <input type="hidden" name="goods_id" value="<{$goods.obj_items.products.0.goods_id}>" />
    <input type="hidden" name="min" value="1" class="min-num" />
    <input type="hidden" name="max" value="<{$goods.store.store}>" class="max-num" />
    <input type="hidden" name="stock" value="<{$goods.store.store}>" />

    <!-- add by hyz 2017.11.15 16:53 -->
    <input type="hidden" name="status" value="<{$goods.obj_items.products.0.price.status}>"/>
    <input type="hidden" name="total_amount" value="<{$goods.fixed.total_amount}>"/>
    <input type="hidden" name="fixed_nums" value="<{$goods.fixed.nums}>"/>
    <input type="hidden" name="quantity" value="<{$goods.quantity}>"/>
    <input type="hidden" name="member_lv_price" value="<{$goods.obj_items.products.0.price.member_lv_price}>"/>
    <input type="hidden" name="mlv_price" value="<{$goods.obj_items.products.0.price.mlv_price}>"/>
    <input type="hidden" name="discount_amount_prefilter" value="<{$goods.discount_amount_prefilter}>"/>
    <input type="hidden" name="dis_price" value="<{(($goods.obj_items.products.0.price.mlv_price*$goods.quantity)-(($goods.discount_amount_prefilter)+(($goods.obj_items.products.0.price.mlv_price-$goods.obj_items.products.0.price.member_lv_price)*$goods.quantity)))/$goods.quantity}>"/>
    <!-- end -->

    <div href="<{$goods.obj_items.products.0.default_image.thumbnail|default:$env.conf.site.default_thumbnail_pic|storager:'s'}>" class="pt-h-img"><a href="<{link app=b2c ctl=wap_product act=index arg0=$goods.obj_items.products.0.product_id}>"><img src="<{$goods.obj_items.products.0.default_image.thumbnail|default:$env.conf.site.default_thumbnail_pic|storager:'s'}>" alt="<{$goods.obj_items.products.0.name}>"></a></div>
    <div class="pt-h-info">
      <div class="pt-h-name">
        <{$goods.obj_items.products.0.name}>
      </div>
      <!--<div class="pt-h-other">-->
      <!--<{$goods.obj_items.products.0.spec_info}>-->
      <!--</div>-->
      <div class="pt-h-other">
         条形码：<{$goods.keyword}>
      </div>
      <div class="pt-h-other">
          <{$goods.obj_items.products.0.min_buy}><{$goods.unit}>起订 &nbsp;   规格：<{$goods.good_standard}>
      </div>

      <div class="pt-h-price">
        <div class="col2">
          <!--  add 这里判断登录--和未登录-价格不显示 -->
          <{if $check_login=="login"}>
          <!--  end 这里判断登录--和未登录-价格不显示 -->  
          <div class="col price">
            <!-- <{$goods.subtotal_prefilter_after|cur_odr}> -->
            <!-- add by lkb 修改销售价，未登录显示销售价，登录后显示会员价，没有会员价显示出厂价 -->
            <!-- <{if $goods.obj_items.products.0.price.status == 1}> -->
              <!-- <{$goods.obj_items.products.0.price.mlv_price|cur_odr}>/<{$goods.unit}> -->
              <!-- 有促销活动小计费除以购物车数量等于供货价 -->
              <!-- <{(($goods.obj_items.products.0.price.mlv_price*$goods.quantity)-(($goods.discount_amount_prefilter)+(($goods.obj_items.products.0.price.mlv_price-$goods.obj_items.products.0.price.member_lv_price)*$goods.quantity)))/$goods.quantity|cur_odr}>/<{$goods.unit}>
            <{else}>
                <{$goods.obj_items.products.0.price.price|cur_odr}>
            <{/if}> -->
            <!-- add end -->

            <!-- add by hyz 2017.11.15 20:10 -->
              <{if $goods.obj_items.products.0.price.status == 1}>
              <!-- 有优惠 -->
                
                <{if $goods.fixed.total_amount}>
                <!-- 价格打折方式 -->

                  <{if $goods.fixed.nums}>
                  <!-- 如果存在限定促销的商品数量，限量促销 -->
                    
                    <{if $goods.quantity>$goods.fixed.nums}>
                    <!-- 如果购买商品数量大于等于商品促销数量 -->
                      
                      <{if $goods.obj_items.products.0.price.member_lv_price}>
                      <!-- 如果存在渠道商等级价格 -->
                        <{$goods.obj_items.products.0.price.member_lv_price|cur_odr}>
                      <{else}>
                      <!-- 如果不存在渠道商等级价格 -->
                        <{$goods.obj_items.products.0.price.mlv_price|cur_odr}>
                      <{/if}>

                    <{else}>
                    <!-- 如果购买商品数量小于等于商品促销数量 -->
                      <{$goods.fixed.total_amount|cur_odr}>
                    <{/if}>

                  <{else}>
                  <!-- 如果不存在限定促销的商品数量，不限量促销 -->
                    <{(($goods.obj_items.products.0.price.mlv_price*$goods.quantity)-(($goods.discount_amount_prefilter)+(($goods.obj_items.products.0.price.mlv_price-$goods.obj_items.products.0.price.member_lv_price)*$goods.quantity)))/$goods.quantity|cur_odr}>
                    
                    <!-- <{$goods.fixed.total_amount|cur_odr}> -->

                  <{/if}>

                <{else}>
                <!-- 折扣打折方式 -->

                  <{(($goods.obj_items.products.0.price.mlv_price*$goods.quantity)-(($goods.discount_amount_prefilter)+(($goods.obj_items.products.0.price.mlv_price-$goods.obj_items.products.0.price.member_lv_price)*$goods.quantity)))/$goods.quantity|cur_odr}>

                <{/if}>

              <{else}>
              <!-- 没有优惠 -->
                  <{(($goods.obj_items.products.0.price.mlv_price*$goods.quantity)-(($goods.discount_amount_prefilter)+(($goods.obj_items.products.0.price.mlv_price-$goods.obj_items.products.0.price.member_lv_price)*$goods.quantity)))/$goods.quantity|cur_odr}>
              <{/if}>
            <!-- add end hyz -->
          </div>
             <!--  add 这里判断登录--和未登录-价格不显示 -->  
				     <{/if}>  	
				     <!--  end 这里判断登录--和未登录-价格不显示 -->  
          <{if $aCart.promotion.goods.[$goods.obj_ident] || $goods.gift}>
          <div class="col pre J-pre " style="color: #fb0628">
            促销品
            <i class="arr down"></i>
            <i class="arr top"></i>
          </div>
          <{/if}>
        </div>
         <!--@zeng 2017.4.25 移动端发货提示显示-->
           <!-- <div style="font-size: 15px;">
            发货提示：
             <span class="g-tips" style="color:#f00;">
               <{$goods.goods_tips}>
            </sapn>
          </div> -->
      </div>
    </div>

    <div class="pre-info hide">
      <!-- 赠品 -->
      <{foreach from=$goods.gift item=gift key=_gift_key}>
      <div class="box">
        <span class="col f-red">赠品</span>
        <span class="col">
            <{$gift.name}><{$gift.spec_desc}>
            <!--  add 这里判断登录--和未登录-价格不显示 -->
            <{if $check_login=="login"}>
            <!--  end 这里判断登录--和未登录-价格不显示 -->  
            <i><{$gift.price.price|cur_odr}> x <{$gift.quantity}></i>
				    <{/if}>  	
        </span>
      </div>
        <{/foreach}>
        <!-- 商品促销 -->
        <{foreach from=$aCart.promotion.goods.[$goods.obj_ident] item=goods_promotion}>
           <{if $goods_promotion.cart_display}>
             <div class="box">
               <span class="col f-red"><{$goods_promotion.desc_tag}></span>
               <span class="col"><{$goods_promotion.name}></span>
             </div>
           <{/if}>
        <{/foreach}>
     </div>

      <div class="pt-h-bar c-fix">

        <div class="pt-num J-pt-num" style="float: right">
          <span class="minus btn">-</span>
          <div class="num">
            <input type="number" name="modify_quantity[<{$goods.obj_ident}>][quantity]" value="<{$goods.quantity}>" class="num-ipt">
            <input type="hidden"   value="<{if $add.isused==1}><{$add.pernum}><{else}><{$goods.params.peradd}><{/if}>" class="action-quantity-input-getPeradd">
<!--        <input type="hidden"   value="<{$goods.params.peradd}>" class="action-quantity-input-getPeradd"> -->
            <!-- <{if $add.isused==1}><{$add.pernum}><{else}><{$goods.params.peradd}><{/if}> -->
            <input type="hidden"  class="action-quantity-input-havegift"  value="<{if $goods.fullofgift.maxbuytype=='fullofgift' }>havegift<{else}>null<{/if}>">
            <input type="hidden"  class="action-quantity-input-getmaxbuy"  value="<{if $goods.fullofgift.maxbuytype=='fullofgift' }><{$goods.fullofgift.maxbuygift|number}><{else}><{$goods.quantity|number}><{/if}>">
          </div>
          <span class="plus btn">+</span>
        </div>
   <!--  <div class="pt-h-fav" style="float: left">
              <{if $login=='nologin'}>
              <a href="<{link app=b2c ctl=wap_passport act=login}>" class="btn">收藏</a>
              <{else}>
              <a class="btn btn-addfav favlist" type="button" data-gid="<{$goods.obj_items.products.0.goods_id}>" href="#">收藏</a>
              <{/if}>
          </div> -->
        <div class="pt-h-del" style="float: left">
          <a href="<{link app=b2c ctl=wap_cart act=remove}>" class="btn gray J-remove">
            删除
          </a>
        </div>
        <div class="u-total">
            <!-- <{if $goods.obj_items.products.0.price.status == 1}> -->
            <!-- 价格：$goods.obj_items.products.0.price.mlv_price
            数量：$adjunct.quantity
            总价：$goods.obj_items.products.0.price.mlv_price*$adjunct.quantity
            优惠价格：<{($goods.discount_amount_prefilter)+(($goods.obj_items.products.0.price.price-$goods.obj_items.products.0.price.member_lv_price)*$goods.quantity)|cur_odr}> -->
               <!-- 小计：<span class="u-total-child"><{($goods.obj_items.products.0.price.mlv_price*$goods.quantity)-(($goods.discount_amount_prefilter)+(($goods.obj_items.products.0.price.mlv_price-$goods.obj_items.products.0.price.member_lv_price)*$goods.quantity))|cur_odr}></span> -->

               <!-- 小计：<span class="u-total-child"><{$goods.quantity*((($goods.obj_items.products.0.price.mlv_price*$goods.quantity)-(($goods.discount_amount_prefilter)+(($goods.obj_items.products.0.price.mlv_price-$goods.obj_items.products.0.price.member_lv_price)*$goods.quantity)))/$goods.quantity)|cur_odr}></span> -->

            <!-- <{else}> -->
               <!-- 小计：<span class="u-total-child"><{$goods.obj_items.products.0.mlv_price.price*$goods.quantity|cur_odr}></span> -->
            <!-- <{/if}> -->

            <!--@by hyz 2017.11.15 20:08 -->

           <{if $goods.obj_items.products.0.price.status == 1}>
              
              <!-- 价格打折方式 -->
              <{if $goods.fixed.total_amount}>

                <!-- 如果存在限定促销的商品数量，限量促销 -->
                <{if $goods.fixed.nums}>
                  <!-- 如果购买商品数量大于或者等于商品促销数量 -->
                  <{if $goods.quantity>$goods.fixed.nums}>
                    <!-- 如果存在渠道商等级价格 -->
                    <{if $goods.obj_items.products.0.price.member_lv_price}>

                      <{($goods.fixed.total_amount*$goods.fixed.nums)+($goods.quantity-$goods.fixed.nums)*$goods.obj_items.products.0.price.member_lv_price|cur_odr}>

                    <{else}>
                      <!-- 如果不存在渠道等级价格 -->
                      <{($goods.fixed.total_amount*$goods.fixed.nums)+($goods.quantity-$goods.fixed.nums)*$goods.obj_items.products.0.price.mlv_price|cur_odr}>

                    <{/if}>

                  <{else}>
                    <!-- 如果购买商品数量小于商品促销数量 -->
                    <{$goods.fixed.total_amount*$goods.quantity|cur_odr}>

                  <{/if}>

                <{else}>

                  <!-- 如果不存在限定促销的商品数量，不限量促销 -->
                  <!-- <{$goods.fixed.total_amount*$goods.quantity|cur_odr}>d -->

                  <!-- 如果存在渠道等级价格 -->
                  <{if $goods.obj_items.products.0.price.member_lv_price}>
                    <{($goods.obj_items.products.0.price.mlv_price*$goods.quantity)-(($goods.discount_amount_prefilter)+(($goods.obj_items.products.0.price.mlv_price-$goods.obj_items.products.0.price.member_lv_price)*$goods.quantity))|cur_odr}>
                    <!-- <{$goods.fixed.total_amount*$goods.quantity|cur_odr}> -->
                  <{else}>
                  <!-- 如果不存在渠道等级价格 -->
                    <{($goods.obj_items.products.0.price.member_lv_price*$goods.quantity)-$goods.discount_amount_prefilter|cur_odr}>
                  <{/if}>

                <{/if}>

              <{else}>
                <!-- 折扣打折方式 -->

                <!-- 如果存在渠道等级价格 -->
                <{if $goods.obj_items.products.0.price.member_lv_price}>
                  <{($goods.obj_items.products.0.price.mlv_price*$goods.quantity)-(($goods.discount_amount_prefilter)+(($goods.obj_items.products.0.price.mlv_price-$goods.obj_items.products.0.price.member_lv_price)*$goods.quantity))|cur_odr}>
                <{else}>
                <!-- 如果不存在渠道等级价格 -->
                  <{($goods.obj_items.products.0.price.member_lv_price*$goods.quantity)-$goods.discount_amount_prefilter|cur_odr}>
                <{/if}>

              <{/if}>

           <{else}>
              <!-- 没有优惠 -->
              <!-- 如果存在渠道商等级价格 -->
              <{if $goods.obj_items.products.0.price.member_lv_price}>
                <{$goods.obj_items.products.0.price.member_lv_price*$goods.quantity|cur_odr}>h
              <{else}>
                <{$goods.obj_items.products.0.price.mlv_price*$goods.quantity|cur_odr}>
              <{/if}>

            <{/if}>
            <!--end-->

            <{if $goods.store.store <= 5}><span class="warn-message">余量有限</span><{/if}>
        </div>
      </div>
    </li>

    <!-- 配件 -->
    <{foreach from=$goods.adjunct item=adjunct key=key name=adjunct}>
    <li class="pt-h-item c-fix">
      <input type="hidden" name="obj_type" value="goods">
<!-- add by peter 2017-05-05 购物车那 配件商品不可以增减数量为问题 -->
      <input type="hidden" name="min" value="<{$adjunct.store.min_buy_store}>" class="min-num"/>
      <input type="hidden" name="max" value="<{$adjunct.store.real}>" class="max-num"/>
<!--       <input type="text" name="max" value="<{$adjunct.store.real - $cart_buy_nums.[$adjunct.goods_id] + $adjunct.quantity}>" class="max-num"/> -->
      <input type="hidden" name="stock" value="<{$adjunct.store.store}>"/>
      <div href="<{$adjunct.default_image.thumbnail|default:$env.conf.site.default_thumbnail_pic|storager:'s'}>" class="pt-h-img">
        <a href="<{link app=b2c ctl=wap_product arg0=$adjunct.product_id }>">
          <img src="<{$adjunct.default_image.thumbnail|default:$env.conf.site.default_thumbnail_pic|storager:'s'}>" alt="">
        </a>
      </div>
      <div class="pt-h-info">
        <div class="pt-h-name">
          <span style="color: #f58800">[配件商品]</span><{$adjunct.name}>
        </div>
        <div class="pt-h-other">
          <{$adjunct.spec_info}>
        </div>
          <!--  add 这里判断登录--和未登录-价格不显示 -->
          <{if $check_login=="login"}>
          <!--  end 这里判断登录--和未登录-价格不显示 -->  
        <div class="pt-h-price">
          <div class="col2">
            <div class="p-subtotal price">
              <{$adjunct.subtotal|cur_odr}>
            </div>
          </div>
        </div>
          <!--  add 这里判断登录--和未登录-价格不显示 -->  
				  <{/if}>  	
				  <!--  end 这里判断登录--和未登录-价格不显示 -->  
      </div>

      <div class="pt-h-bar c-fix">
        <div class="pt-num J-pt-num">
          <span class="minus btn gray">-</span>
          <div class="num">
            <!-- add by peter 2017-05-05 购物车那 配件商品不可以增减数量为问题 -->
            <input type="text"    name="modify_quantity[<{$goods.obj_ident}>][adjunct][<{$adjunct.group_id}>][<{$adjunct.product_id}>][quantity]" class="num-ipt"  max="<{$adjunct.store.real}>" value="<{$adjunct.quantity}>">
            <!-- hzk  用于给配件数量按钮触发时 给'.action-quantity-input-getPeradd'对应的值，避免报错 ,如果少了会使得js出错无法按钮增减数量-->
            <input type="hidden"   value="1" class="action-quantity-input-getPeradd">
            <input type="hidden"  class="action-quantity-input-havegift"  value="null">
<!--        <input type="hidden"  class="action-quantity-input-havegift"  value="<{if $goods.fullofgift.maxbuytype=='fullofgift' }>havegift<{else}>null<{/if}>"> -->
		        <input type="hidden"  class="action-quantity-input-getmaxbuy"  value="<{if $adjunct.store.real }><{$adjunct.store.real}><{else}>999999<{/if}>">
		
          </div>
          <!-- 这里是配件的数量点击位置  hzk-->
             <span class="plus btn gray">+</span><{if $adjunct.store.store <= 5}><span class="warn-message">余量有限</span><{/if}>
          </div>
        <div class="pt-h-fav">
          <{if $login=='nologin'}>
            <a href="<{link app=b2c ctl=wap_passport act=login}>" class="btn">收藏</a>
          <{else}>
            <a class="btn btn-addfav favlist" type="button" data-gid="<{$goods.obj_items.products.0.goods_id}>" href="#">收藏</a>
          <{/if}>
        </div>
        <div class="pt-h-del">
          <a href="<{link app=b2c ctl='wap_cart' act='remove' arg0='goods'}>" class="btn gray J-remove">
            删除
          </a>
        </div>
      </div>
    </li>
    <{/foreach}>
    <{/if}>
    <{/foreach}>
  </ul>
  <{/if}>
